// JavaScript Document
var oMake = 
{
	/*areaAsc:function(src,rs,doc)
	{
		doc = doc || document;
		if(src == document)
			return 'document.'+(rs || 'body');
		var pre = src,i=0;	
		while(pre = pre.previousSibling)i++;		
		rs = 'childNodes['+i+']'+(rs?'.'+rs:'');
		return getEle(src.parentNode,rs,doc);
	},*/
	areaDesc:function(pre,src)
	{
		if(src)
		{
			pre = pre || document;
		}else
		{			
			src = pre;
			pre = document;
		}
		var oList = [],o=null;
		if(o = pre.firstChild)
		{
			oList.push(o);
			while(o = o.nextSibling)oList.push(o);
		}
		var i = 0,cnt = oList.length,rs = false;
		for(i = 0;i<cnt;i++)
		{
			o = oList[i];
			if(o == src)
				return 'childNodes['+i+']';
			if(o.tagName && o.hasChildNodes())
			{
				if(rs = getDoc2Ele(o,src))
					return 'childNodes['+i+'].'+rs;
			}else if(o.tagName && (o.tagName == "FRAME" || o.tagName == "IFRAME"))
			{
				if(rs = getDoc2Ele(o.contentWindow.document,src))
						return 'childNodes['+i+'].contentWindow.document.'+rs;
			}
		}
		return false;
	},
	external:function(el,js)
	{
		var make = window.external.make;
		if(fun)
			make(el,js);
	},
	click:function(ev)
	{
		ev = ev || window.event;
		if(top.location != self.location)
		{
			window.top.getEleStation(ev);
		}else if(ev)
		{
			var el = ev.srcElement;
			this.external("document."+this.areaDesc(el),el);		
		}
		return false;		
	},
	//oMake
	init:function()
	{
		window
	}
}